/* .gallery is used in image gallery pages, .imageframe in image pages */

.gallery, .imageframe {
	float: left;
	vertical-align:top;
	border: 0;
	margin: 0;
	text-align: center;
	clear: both;
}
/*
@media (min-width:320px) {
	.gallery {
			min-width: 320px;
	}
}
@media (min-width:430px) {
	.gallery {
			min-width: 360px;
	}
}
@media (min-width:750px) {
	.gallery {
			min-width: 760px;
	}
}
@media (min-width:1024px) {
	.gallery {
			min-width: 820px;
	}
}
*/
.gallery {
	padding: 2px 0;
	margin-top: 3px;
	max-width: 99%; /*IE still neeeds layout */
}
@media (max-width:750px) {
	.gallery {
		padding: 1px 0;
		margin-top: 0;
	}
}
@media (min-width:750px) {
		.imageframe {
		padding: 5px;
	}

}
.gallery p, .imageframe p {
	font-size: small;
}

p.gallerysub {
	text-align:left;
	font-size:16px;
	padding: 8px 0 3px;
}

div.galleryrow, div.imageblock {
	display: flex;
	display: -webkit-flex; 
	display: -ms-grid;
	flex-flow: row wrap;
	justify-content: center;
	align-items: flex-start;
	-webkit-flex-flow: row wrap;
	-webkit-justify-content: center;
	-webkit-align-items: flex-start;
}

div.galleryrow {
	padding: 0 2px;
	display: -ms-flexbox;
	-ms-flex-direction: row;
	-ms-flex-wrap: wrap;
}

div.gallery.left div.galleryrow{
	justify-content: flex-start;
	-webkit-justify-content: flex-start;
	margin-left: 4px;
}

div.galleryrow h2{
	margin: -5px 0 4px 0;
	text-align:center;
	clear: both;
}
div.galleryrow h3{
	margin: 4px 0 2px 0;
	text-align:left;
	clear: both;
}
div.galleryrow h3, div.headerrow h3 {
	font-size: medium;
}

div.galleryrow img {
	vertical-align:top;
}

div.imagegroup {
	display: inline;
}

div.image, div.image2 {
	display: inline;
}

div.imagegroup div.image.clear {
	display: inline;
	clear:both;
}

div.image img, div.image2 img {
	float: none;
}

div.gallery.left div.imagegroup {
	text-align: left;
	}

@media (max-width:800px) {
	/*RHWHY?
	div.image img {
		max-width: 33%;
		height: auto !important;
	} */
	div.imagegroup.g2x2 {
		max-width: 100%;
	}
	div.imagegroup.g2x2 img{
		max-width: 48%;
		height: auto !important;
	}
	div.imagegroup div.image img  {
/*		max-width: 48%;
		height: auto !important; */
		display: inline-block;
	}
}

@media (max-width:360px) {
	/* Force to one-column */

div.gallery.left div.imagegroup {
	text-align: center;
	}
	div.imagegroup div.image img  {
		max-width: 100%;
		height: auto !important;
	}
}
@media (min-width:600px) {
	div.imagegroup.g2x2  {
		max-width: 50%;
	}
	
}
div.image2 img, div.image2 a:hover img {
	border: 0;
}
div.image p, div.image2 p, div.imagegroup p {
	clear: both;
	text-align:center;
}
div.image2 {
	border: 2px solid #3077c2;
	display: block;
}
div.imageframe img.solthumb {
  max-width: 100%;
  width: 100%;
  height: auto !important;	
}

@media (max-width:800px) {	
	div.imagelg img, div.imagemd img {
	  max-width: 730px;
	  height: auto !important;	
	}
	div.image200 img {
	  max-width: initial;
	  height: auto !important;	
	}
}
	
@media (max-width:640px) {
	div.imagelg img {
	  max-width: 512px;
	  height: auto !important;	
	}
}

@media (max-width:540px) {
	div.imagelg img, div.imagemd img {
	  max-width: 360px;
	  height: auto !important;	
	}
}

@media (max-width:414px) {	
	div.image200 img {
	  max-width: 198px;
	  height: auto !important;	
	}
	.solcontent a img {
  		border: 1px solid #3077c2;
	}
}
@media (max-width:375px) {	
	div.image200 img {
	  max-width: 175px;
	  height: auto !important;	
	}
}
@media (max-width:330px) {
	div.image200 img {
	  max-width: 150px;
	  height: auto !important;	
	}
}
div.right {
	text-align: right;
}
div.newsection {
	padding-top: 8px;
}
.solminihd {
	margin: 0.25em 0;
	padding: 0;
}

div.solminihdlable {
	float: left;
	width: 4em;	
	margin: 0;
	padding: 0;
}
	
div.solminihddesc {
	float: left;
	width: 12em;	
	margin: 0;
	padding: 0 0 0 0.5em;
}
	
.solminihdlable p,
.solminihddesc p	{
	margin: 0;
	padding: 0;
	vertical-align: bottom;
	}
	
.solminihdlable p {
	font-size: x-small;	 
	font-weight: bold;
	text-align: right; 
	line-height: 1.5em;
	}

.solminihddesc p	{
	font-size: small;	 
	text-align: left;
	}
		
.solcontent p.solhead {
	font-size:medium;
	font-weight:bold;
	margin: 0.75em 0 0 0;
	}

@media (max-width:600px) {
	div.solminihdlable {
		clear: both;
	}
}

p.caption {
	font-weight:normal;
}

div.headerrow {
	padding: 0 2px;
	clear: both;
	text-align: left;
}


div.headerrow h2{
	/*RH Overrides for List vs Gallery */
	text-align:left;
	font-size:x-large;
	margin-top: 4px;
}

div.headerrow h3{
	margin: 0;
	font-size:medium;
	text-align:left;
	clear: both;
	padding:8px 0 1px 2px;
}

div.headerrow h2 + h3{
	padding-top: 0;

}

div.headerrow p{
	max-width: 800px;
	margin-left: 6px;

}

@media (max-width: 750px) {
	div.headerrow h2{
		font-size:large;
	}
	
	div.galleryrow h3, div.headerrow h3{
		font-size: small;
		padding-top:2px;
	}
	div.headerrow p{
		font-size: small;
	}
	
}

div.imageframe.solresize img {
	max-width: 100%;
	height: auto !important;
}